use std::collections::HashSet;

pub fn new_count_distinct(input_str: &str) -> usize {
    HashSet::<_>::from_iter(
        // Split original string by ','
        input_str.split(','),
    )
    // Count the number of elements in the set,
    // which is the number of distinct elements
    .len()
}
